package com.wxblockchain.core.wsmanager;

import androidx.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public class WsStatus {

  private WsStatus() {}

  public final static int CONNECTING = 0;
  public final static int CONNECTED = 1;
  public final static int RECONNECT = 2;
  public final static int DISCONNECTED = -1;

  @Retention(RetentionPolicy.SOURCE)
  @IntDef({CONNECTING,CONNECTED,RECONNECT,DISCONNECTED})
  public   @interface WsState {}

  class CODE {
    public final static int NORMAL_CLOSE = 0x1000;
    public final static int ABNORMAL_CLOSE = 0x1001;
  }

  class TIP {
    public final static String NORMAL_CLOSE = "normal close";
    public final static String ABNORMAL_CLOSE = "abnormal close";
  }
}
